from . import models


def multi_pub(user_obj, user_list):
    """
    私户转公户
    :param user_list:
    :return:
    """
    models.Customer.objects.filter(id__in=user_list).update(consultant=None)
    return


def multi_pri(user_obj, user_list):
    """
    公户转私户
    :param user_obj:
    :param user_list:
    :return:
    """
    models.Customer.objects.filter(id__in=user_list).update(consultant=user_obj)
    return
